const _import = require("./_import_" + process.env.ROUT_MODE);
let operateManagement=        {
    path: "operate-management",
    name: "运营中心",
    component: {
        render (c) { return c("router-view"); }
    },
    children: [{
        path: 'knowledge-base',
        name: '知识库',
        redirect: 'knowledge-base/knowledge-list',
        component: {
            render (c) {
                return c('router-view')
            }
        },
        children: [{
            path: 'knowledge-list',
            name: '知识列表',
            component: _import('operate-management/knowledge-base/knowledge-list'),
            children: [{
                path: "knowledge-details",
                name: "知识详情",
                component: _import(
                    "operate-management/knowledge-base/knowledge-list/knowledge-details"
                ),
                meta: { isSub: true }
            }]
        }, {
            path: 'classification-management',
            name: '知识分类管理',
            component: _import('operate-management/knowledge-base/classification-management'),
        }]
    },
    {
        path: "staff-management",
        name: "员工管理",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        redirect: "staff-management/staff-management",
        children: [{
            path: "staff-management",
            name: "员工列表",
            component: _import(
                "operate-management/staff-management/staff-management"
            ),
        },
        {
            path: "staff-details",
            name: "员工详情",
            component: _import(
                "operate-management/staff-management/staff-management/staff-details"
            ),
            meta: {
                isSub: true
            }
        },
        {
            path: "staff-class",
            name: "员工分类",
            component: _import(
                "operate-management/staff-management/staff-class"
            ),
        },
        {
            path: "staff-commission",
            name: "员工提成配置",
            component: _import(
                "operate-management/staff-management/staff-commission"
            ),
            children: [{
                path: "modify-record",
                name: '提成方案修改记录',
                component: _import("operate-management/staff-management/staff-commission/modify-record"),
                meta: {
                    isSub: true
                }
            }]
        }
        ]
    },
    {
        path: "user-management",
        name: "员工列表",
        component: _import("operate-management/user-management"),
        children: [{
            path: "user-details",
            name: "用户详情",
            component: _import("operate-management/user-management/user-details"),
            meta: { isSub: true }
        }]
    },
    {
        path: "role-management",
        name: "角色管理",
        component: _import("operate-management/role-management"),
        children: [{
            path: "role-details",
            name: "角色详情",
            component: _import("operate-management/role-management/role-details"),
            meta: { isSub: true }
        }]
    },
    {
        path: "client-management",
        name: "客户管理",
        component: { render (c) { return c("router-view"); } },
        redirect: "client-management/client-companyMg",
        children: [{
            path: "client-companyMg",
            name: "客户管理列表",
            component: _import("operate-management/client-management/client-companyMg"),
            children: [{
                path: "client-companyDetail",
                name: "客户详情",
                component: _import("operate-management/client-management/client-companyDetail"),
                meta: { isSub: true }
            },
            {
                path: 'client-salePrice',
                name: '价格协议',
                component: _import('operate-management/client-management/client-companyMg/client-salePrice'),
                meta: { isSub: true }
            },
            {
                path: 'client-addSalePrice',
                name: '价格协议详情',
                component: _import('operate-management/client-management/client-companyMg/client-addSalePrice'),
                meta: { isSub: true }
            },

            ]
        }, {
            path: "client-typeMg",
            name: "客户类型",
            component: _import("operate-management/client-management/client-typeMg"),
        },
        {
            path: "unifiedprice-management",
            name: "统一价格管理",
            component: _import("operate-management/client-management/unifiedprice-management"),
            children: [{
                path: "audit-records",
                name: "调价审核记录",
                component: _import("operate-management/client-management/unifiedprice-management/audit-records"),
                meta: { isSub: true }
            },]
        }
        ]
    },
    {
        path: "supplier-management",
        name: "供应商管理",
        component: { render (c) { return c("router-view"); } },
        children: [{
            path: "supplier-supplierMg",
            name: "供应商列表",
            component: _import("operate-management/supplier-management/supplier-supplierMg"),
            children: [{
                path: "supplier-supplierDetail",
                name: "供应商详情",
                component: _import("operate-management/supplier-management/supplier-supplierDetail"),
                meta: { isSub: true }
            },
            {
                path: 'supplier-Purchase',
                name: '采购价格协议',
                component: _import('operate-management/supplier-management/supplier-supplierMg/supplier-Purchase'),
                meta: { isSub: true }
            },
            {
                path: 'supplier-PurchaseAdd',
                name: '新增价格协议',
                component: _import('operate-management/supplier-management/supplier-supplierMg/supplier-PurchaseAdd'),
                meta: { isSub: true }
            },
            {
                path: 'supplier-PurchaseLook',
                name: '查看价格协议',
                component: _import('operate-management/supplier-management/supplier-supplierMg/supplier-PurchaseLook'),
                meta: { isSub: true }
            },
            {
                path: 'supplier-PurchaseEdit',
                name: '修改价格协议',
                component: _import('operate-management/supplier-management/supplier-supplierMg/supplier-PurchaseEdit'),
                meta: { isSub: true }
            },

            ]
        }]
    },
    {
        path: 'information-management',
        name: '资讯管理',
        redirect: 'operate-management/information-management',
        component: { render (c) { return c('router-view') } },
        children: [{
            path: 'information-list',
            name: '资讯列表',
            component: _import('operate-management/information-management/information-list'),
            children: [{
                path: 'information-articleLook',
                name: '查看资讯-文章',
                component: _import('operate-management/information-management/information-list/information-articleLook'),
                meta: { isSub: true }
            },
            {
                path: 'information-add',
                name: '发布资讯',
                component: _import('operate-management/information-management/information-list/information-add'),
                meta: { isSub: true }
            },
            {
                path: 'information-videoLook',
                name: '查看资讯-视频',
                component: _import('operate-management/information-management/information-list/information-videoLook'),
                meta: { isSub: true }
            },

            ]
        },]
    },
    {
        path: 'pos-management',
        name: 'POS管理',
        redirect: '/operate-management/pos-management',
        component: { render (c) { return c('router-view') } },
        children: [{
            path: 'pos-managementList',
            name: 'POS管理列表',
            component: _import('operate-management/pos-management/pos-managementList'),
        },
        {
            path: 'pos-lakaraList',
            name: '拉卡拉POS机列表',
            component: _import('operate-management/pos-management/pos-lakaraList'),
            children: [{
                path: 'pos-lakaraDetail',
                name: '拉卡拉POS机详情',
                component: _import('operate-management/pos-management/pos-lakaraList/pos-lakaraDetail'),
                meta: { isSub: true }
            },]
        },
        {
            path: 'pos-subScreenManagement',
            name: '副屏管理',
            component: _import('operate-management/pos-management/pos-subScreenManagement'),
        },
        {
            path: 'pos-subAdd',
            name: '新增海报',
            component: _import('operate-management/pos-management/pos-subAdd')

        }
        ]
    },
    {
        path: 'serve-management',
        name: '服务管理',
        component: { render (c) { return c('router-view') } },
        children: [{
            path: 'service-management',
            name: '服务管理列表',
            component: _import('operate-management/serve-management/service-management'),
            children: [{
                path: 'service-add',
                name: '新增服务项目',
                component: _import('operate-management/serve-management/service-management/service-add'),
                meta: { isSub: true }
            },
            {
                path: 'service-edit',
                name: '编辑服务项目',
                component: _import('operate-management/serve-management/service-management/service-edit'),
                meta: { isSub: true }
            },
            {
                path: 'service-sunmi',
                name: '服务项目',
                component: _import('operate-management/serve-management/service-management/service-sunmi'),
                meta: { isSub: true }
            },
            ]
        },
        {
            path: 'subcard-list',
            name: '次卡',
            component: _import('operate-management/serve-management/subcard-list'),
            children: [{
                path: 'subcard-add',
                name: '次卡新增',
                component: _import('operate-management/serve-management/subcard-list/subcard-add'),
                meta: { isSub: true }
            },
            {
                path: 'subcard-edit',
                name: '次卡详情',
                component: _import('operate-management/serve-management/subcard-list/subcard-edit'),
                meta: { isSub: true }
            },
            {
                path: 'subcard-number',
                name: '销售数量',
                component: _import('operate-management/serve-management/subcard-list/subcard-number'),
                meta: { isSub: true }
            },
            {
                path: 'subcard-sunmi',
                name: '次卡信息 ',
                component: _import('operate-management/serve-management/subcard-list/subcard-sunmi'),
                meta: { isSub: true }
            },
            ]
        },
        ]
    },
    {
        path: "template-priceTemplate",
        name: "报货价格协议模板",
        component: _import("operate-management/template-priceTemplate"),
        children: [{
            path: "template-addPriceTempStore",
            name: "新增门店报货价格模板",
            component: _import("operate-management/template-priceTemplate/template-addPriceTempStore"),
            meta: { isSub: true }
        },
        {
            path: "template-editPriceTempStore",
            name: "门店报货价格模板详情",
            component: _import("operate-management/template-priceTemplate/template-editPriceTempStore"),
            meta: { isSub: true }
        }
        ]
    },
    {
        path: "template-reportTempListStore",
        name: "门店报货价格协议",
        component: _import("operate-management/template-reportTempListStore"),
        children: [{
            path: "template-reportPriceDetailStore",
            name: "查看门店报货价格模板",
            component: _import("operate-management/template-reportTempListStore/template-reportPriceDetailStore"),
            meta: { isSub: true }
        }]
    },
    {
        path: "goods-management",
        name: "商品管理",
        component: {
            render (c) { return c("router-view"); }
        },
        redirect: "goods-management/goods-goodslist",
        children: [{
            path: "goods-goodslist",
            name: "商品列表",
            component: _import(
                "operate-management/goods-management/goods-goodslist"
            ),
            children: [{
                path: "goods-goodsAddnew",
                name: "新增商品",
                component: _import(
                    "operate-management/goods-management/goods-goodslist/goods-goodsAddnew"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "goods-goodEditnew",
                name: "编辑商品",
                component: _import(
                    "operate-management/goods-management/goods-goodslist/goods-goodEditnew"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: 'goods-reportTempListPos',
            name: 'POS销售商品管理',
            component: _import('operate-management/goods-management/goods-reportTempListPos'),
            children: [{
                path: 'goods-reportPriceDetailPos',
                name: 'POS商品管理详情',
                component: _import('operate-management/goods-management/goods-reportTempListPos/goods-reportPriceDetailPos'),
                meta: {
                    isSub: true
                }
            },]
        },
        {
            path: 'specification-type',
            name: '自定义规格型号',
            component: _import('operate-management/goods-management/specification-type')
        },
        {
            path: "brand-brandClass",
            name: "品牌管理",
            component: _import(
                "operate-management/goods-management/brand-brandClass"
            ),
        },
        {
            path: "goods-labelManagement",
            name: "商品标签管理",
            component: _import(
                "operate-management/goods-management/goods-labelManagement"
            ),
        }
        ]
    },
    {
        path: 'store-management',
        name: '门店管理',
        component: {
            render (c) {
                return c('router-view')
            }
        },
        children: [{
            path: 'store-storesManagement',
            name: '门店列表',
            component: _import('operate-management/store-management/store-storesManagement'),
            children: [{
                path: 'store-storesCreate',
                name: '门店信息',
                component: _import('operate-management/store-management/store-storesCreate'),
                meta: { isSub: true }
            },]
        },
        {
            path: 'store-sysdoor',
            name: '门店配置',
            component: _import('operate-management/store-management/store-sysdoor'),
        },
        {
            path: 'store-sunmi',
            name: '基础信息',
            component: _import('operate-management/store-management/store-sunmi'),
            // meta: { isSub: true }
        },
        {
            path: 'wechat-charts',
            name: '微信老板报表管理',
            component: _import('operate-management/store-management/wechat-charts'),
        },
        {
            path: 'store-open-weChat',
            name: '门店开通会员小程序',
            component: _import('operate-management/store-management/store-open-weChat'),
        },
          {
            path: "store-staff-commission",
            name: "门店员工提成配置",
            component: _import(
                "operate-management/store-management/store-staff-commission"
            ),
        }
        ]
    },
    {
        path: 'member-management',
        name: '会员管理',
        redirect: '/operate-management/member-management',
        component: { render (c) { return c('router-view') } },
        children: [{
            path: 'integral-rules',
            name: '积分规则',
            component: _import('operate-management/member-management/integral-rules'),
        },
        {
            path: 'integral-list',
            name: '积分规则列表',
            component: _import('operate-management/member-management/integral-list'),
        },
        {
            path: 'integral-discount',
            name: '会员优惠规则列表',
            component: _import('operate-management/member-management/integral-discount'),
        },
        {
            path: 'integral-upgrade',
            name: '升级方式',
            component: _import('operate-management/member-management/integral-upgrade'),
        },
        {
            path: 'member-level',
            name: '会员等级',
            component: _import('operate-management/member-management/member-level'),
            children: [{
                path: "new-memberLevel",
                name: "会员等级详情",
                component: _import("operate-management/member-management/new-memberLevel"),
                meta: { isSub: true }
            }, {
                path: "member-leveledit",
                name: "编辑会员等级",
                component: _import("operate-management/member-management/member-leveledit"),
                meta: { isSub: true }
            }]
        }, {
            path: 'member-list',
            name: '会员列表',
            component: _import('operate-management/member-management/member-list'),
            children: [{
                path: "member-details",
                name: "新增会员",
                component: _import("operate-management/member-management/member-details"),
                meta: { isSub: true }
            }, {
                path: "member-look",
                name: "会员详情",
                component: _import("operate-management/member-management/member-look"),
                meta: { isSub: true }
            }]
        },
        ]
    },
    {
        path: 'serviceProvider-management',
        name: '服务商管理',
        redirect: 'serviceProvider-management/serviceProvider-list',
        component: {
            render (c) {
                return c('router-view')
            }
        },
        children: [{
            path: 'serviceProvider-list',
            name: '服务商列表',
            component: _import('operate-management/serviceProvider-management/serviceProvider-list'),
            children: [{
                path: "serviceProvider-details",
                name: "服务商详情",
                component: _import(
                    "operate-management/serviceProvider-management/serviceProvider-list/serviceProvider-details"
                ),
                meta: { isSub: true }
            }]
        },
        {
            path: 'splitConfig-list',
            name: '服务商分润配置',
            component: _import('operate-management/serviceProvider-management/splitConfig-list'),
            children: [{
                path: "splitConfig-details",
                name: "服务商分润详情",
                component: _import(
                    "operate-management/serviceProvider-management/splitConfig-list/splitConfig-details"
                ),
                meta: { isSub: true }
            }]
        },
        {
            path: 'goodsSplit-grade',
            name: '商品分润等级',
            component: _import('operate-management/serviceProvider-management/goodsSplit-grade'),
        },
        ]
    },
    {
        path: 'notice-management',
        name: '门店公告管理',
        redirect: 'notice-management/notice-list',
        component: {
            render (c) {
                return c('router-view')
            }
        },
        children: [{
            path: 'notice-list',
            name: '公告列表',
            component: _import('operate-management/notice-management/notice-list'),
        }, {
            
                path: 'notice-add',
                name: '新增公告',
                component: _import('operate-management/notice-management/notice-add'),
            
        }]
   }
    ]
}
export default operateManagement